{% extends 'base.html' %}

{% load static %}
{% block title %}Login{% endblock %}

{% block content %}
<div class="row text-center vertical-middle-sm">
	<h1>登录！</h1>
	{% if form.errors %}
		<p>账号密码不对，请重试</p>
	{% endif %}
	<p>请输入您的账号密码</p>
	<form class="form-horizontal" action="{% url 'account:user_login' %}" method="POST" >{% csrf_token %}
		<div class="form-group">
			<label for="{{ form.username.id_for_label }}" class="col-md-5 control-label" style="color:red">
				<span class="glyphicon glyphicon-user"></span>
				用户名
			</label>
			<div class="col-md-6 text-left">{{ form.username}}</div>
		</div>
		<div class="form-group">
			<label for="{{ form.password.id_for_label}}" class="col-md-5 control-label" style="color:blue">
				<span class="glyphicon glyphicon-floppy-open">密码</span>
			</label>
			<div class="col-md-6 text-left">{{ form.password }}</div>
		</div>
		<input type="submit" name="Login">
	</form>
</div>
{% endblock %}